package io.renren.modules.sys.dao;

import io.renren.modules.sys.entity.SysDept1Entity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 部门管理
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2020-08-17 11:17:41
 */
@Mapper
public interface SysDept1Dao extends BaseMapper<SysDept1Entity> {

    List<SysDept1Entity> queryList(Map<String, Object> params);
    List<SysDept1Entity> queryListbyParentId(Map<String, Object> params);
    /**
     * 查询子部门ID列表
     * @param parentId  上级部门ID
     */
    List<Long> queryDetpIdList(Long parentId);
    Integer queryCount(Map<String, Object> params);
    List<SysDept1Entity> queryList1(String deptcode);

}
